﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:ViewModel="clr-namespace:HospitalTracking.ViewModel" mc:Ignorable="d" x:Class="HospitalTracking.MainWindow"
        Title="MainWindow" Height="750" Width="725" >


    <Grid DataContext="{Binding Main, Mode=OneWay, Source={StaticResource Locator}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="347*"/>
            <RowDefinition Height="373*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="142*"/>
            <ColumnDefinition Width="243*"/>
            <ColumnDefinition Width="332*"/>
        </Grid.ColumnDefinitions>
        <ListBox x:Name="depatmentListBox" ItemsSource="{Binding Hospital.Departments}" ItemTemplate="{DynamicResource DepartmentTemplate}" Grid.RowSpan="2"/>
        <ListBox x:Name="pListBox" ItemsSource="{Binding Hospital.Departments}" ItemTemplate="{DynamicResource DepartmentTemplate}" Grid.RowSpan="2"/>
        <Button Content="Load" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Command="{Binding LoadHospitalDataCommand, Mode=OneWay}" Height="22" Grid.Row="1"/>

    </Grid>
</Window>
